package org.jeecg.config.sms;

import org.jeecg.common.util.sms.SmsUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SmsConfig {
    @Value("${jeecg.feige.apikey}")
    private String apikey;
    @Value("${jeecg.feige.secret}")
    private String secret;
    @Value("${jeecg.feige.sign_id}")
    private String sign_id;

    @Bean
    public void initSmsConfig() {
        SmsUtil.setApiKey(apikey);
        SmsUtil.setSecret(secret);
        SmsUtil.setSign_id(sign_id);
    }
}
